package com.util;

import com.service.UserService;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserTest {
    @Test
    public void t1(){
        ClassPathXmlApplicationContext applicationContext=new ClassPathXmlApplicationContext("spring-tx.xml");
        UserService bean = applicationContext.getBean(UserService.class);
        bean.exchangeDesc("同桌","王八","就我同桌","就大王八");

    }
}
